#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Time: 2020/3/4  10:46
# @Author: 余浪人
# @email: yulangren520@gmail.com
from apps.models import BaseModel, db


class TL_Plugs_Model(BaseModel):
    plug_logo = db.Column(db.String(16),comment='插件标识')
    plug_name = db.Column(db.String(255),comment='插件名称')
    plug_version = db.Column(db.String(10),comment='插件版本')
    plug_class = db.Column(db.String(10),comment='插件类型')
    install_status = db.Column(db.Integer,default=1,comment='安装状态')
    install_time = db.Column(db.DateTime,comment='安装时间')
    def __repr__(self):
        return f'插件：{self.plug_name}'
